<template>
  <div class="search">
    <HouseList
      type="list"
      :isFilter="areaId ? true : false"
      :areaId="areaId"
      :region_id="region_id"
      :cate_id="cate_id"
      :build_id="build_id"
    />
  </div>
</template>

<script>
import HouseList from '@/components/HouseList'
export default {
  components: {
    HouseList,
  },
  data() {
    return {
      areaId: null,
      region_id: null,
      cate_id: null,
      build_id: null,
    }
  },
  created() {
    this.areaId = this.$route.params.areaId || null
    this.region_id = this.$route.params.region_id || null
    this.cate_id = this.$route.params.cate_id || null
    this.build_id = this.$route.params.build_id || null
  },
}
</script>

<style lang="less" scoped>
</style>
